package com.smz.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smz.dao.TLogisticsDAO;
import com.smz.entity.TLogistics;
import com.smz.service.TLogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TLogisticsServiceImpl extends ServiceImpl<TLogisticsDAO,TLogistics> implements TLogisticsService {
    @Autowired
    private TLogisticsDAO tLogisticsDAO;
    @Override
    public IPage<TLogistics> findTLogisticsPage(int current, int size) {
        return tLogisticsDAO.findTLogisticsPage(new Page(current,size));
    }


    @Override
    public IPage<TLogistics> findTLogisticsPageName(int current, int size, String logisticsName) {
        return tLogisticsDAO.findTLogisticsPageName(new Page(current,size),logisticsName);
    }

    @Override
    public IPage<TLogistics> findTLogisticsPageId(int current, int size, int logisticsId) {
        return tLogisticsDAO.findTLogisticsPageLogisticsId(new Page(current,size),logisticsId);
    }
}
